package cn.factorybox.item.service.impl;

import cn.factorybox.item.mapper.CompanyMapper;
import cn.factorybox.item.service.CompanyService;
import cn.factorybox.model.entity.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-11-21 19:44
 */

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;


    @Override
    public int save(Company company) {
        return companyMapper.saveCompany(company);
    }

    @Override
    public int update(Company company) {
        return companyMapper.update(company);
    }

    @Override
    public int delete(String id) {
        return companyMapper.delete(id);
    }
}
